import Vue from "vue"
import App from "./App.vue"
import router from "@/router"
import TypeNav from "@/components/TypeNav"
import Carousel from "@/components/Carousel"
import Pagination from "@/components/Pagination"
import store from "@/store"
import "@/mock/mockServer"

// 全局注册TypeNav组件 因为home要用search也要用
Vue.component("TypeNav", TypeNav)
// 全局注册轮播图组件
Vue.component("Carousel", Carousel)

Vue.component('Pagination',Pagination)

Vue.config.productionTip = false

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  router,
  store,

  render: (h) => h(App),
}).$mount("#app")
